import request from '@/utils/request'

// 获取地址
export const newaddress = data => {
  return request.get('/user-receive-address', data)
}

// 新增地址
export const writeAddress = data => {
  return request.post('/user-receive-address', data)
}

// 修改用户地址
export const yijing = (id, data) => {
  return request.put(`/user-receive-address/${id}`, data)
}

// 收藏店铺
export const Collection = data => {
  return request.get('/user-collect-shop')
}

// 进店记录
export const Storerecord = data => {
  return request.get('/user-into-shop')
}

// 修改密码
export const passwordrun = data => {
  return request.put('/user/pwd', data)
}

// 删除地址
export const tomjus = data => {
  return request.delete(`/user-receive-address/${data}`)
}
